﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Data.SqlClient;
namespace DAO
{
    class ConnectionManager
    {
        private String connectionString;
        public ConnectionManager()
        {
            this.connectionString = "Data Source=.;Initial Catalog=QLLVT;Persist Security Info=True;User ID=sa;Password=ltbaogt";
        }
        public SqlConnection getConnection()
        {
            SqlConnection conn=null;
            try
            {
                conn = new SqlConnection(this.connectionString);
                return conn;
            }
            catch (Exception e)
            {
                throw e;
            }
          
            
        }
    }
}
